<?php

namespace App\Utils;


/**
 * Class JsonResponse
 * 
 * @package App\Utils
 */
class JsonResponse
{
	public static function response($data = null, $errcode = 200, $message = 'OK')
	{
		return response()->json([
			'errcode' => $errcode,
			'message' => $message,
			'data' => $data
		]);
	}
}